﻿<Window x:Class="WpfDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="7*"/>
            <RowDefinition Height="3*"/>
        </Grid.RowDefinitions>
        <DockPanel>
            <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom">
                <Button Click="AddClick">Add</Button>
                <Button Click="RemoveClick">Remove</Button>
            </StackPanel>
        <ListBox Name="EmployeeList">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical">
                        <TextBox HorizontalAlignment="Stretch" Text="{Binding Name}" FontSize="18"/>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock>WorkItems: </TextBlock>
                            <TextBox Text="{Binding WorkItems}"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock>Team:</TextBlock>
                            <TextBox Text="{Binding Team}"/>
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        </DockPanel>
        <ScrollViewer Grid.Row="1">
            <ItemsControl Name="Log"/>
        </ScrollViewer>
    </Grid>
</Window>
